#!/usr/bin/python3
# -*- coding:utf-8 -*-
"""
@author: henry_oulen@163.com
@file: create_tables.py
@time: 2023/10/28 9:33
@desc: 
"""
from backend.tvadmin.system.models.factory import Factory
from backend.tvadmin.system.models.log import OperationLog
from backend.tvadmin.system.models.permission import User, Dept, Role, Menu, Post, ConfigSettings, DictData, \
    DictDataDetails
from backend.tvadmin.utils.db_utils import engine
from backend.tvadmin.utils.mysql_base import SqlAlBase


# 创建表需要在下面的类上面加进去
def run():
    Factory()
    OperationLog()
    User()
    Dept()
    Role()
    Menu()
    Post()
    ConfigSettings()
    DictData()
    DictDataDetails()
    SqlAlBase().base.metadata.create_all(engine)
